<?php
/**
 * Created by PhpStorm.
 * User: MSQ
 * Date: 2021/9/27
 * Time: 16:54
 */

namespace App\Handler\WebSocket;


use App\Utils\WebSocketMessage;

class PingHandler extends BaseHandler
{
    /**
     * 心跳处理  {"msgType":"ping","checkType":1}
     * @return string
     */
    public function handler(): string
    {
        $data = WebSocketMessage::getMessage(WebSocketMessage::Pong, '');
        return $data;
    }
}
